import minRequest from '@/utils/request'

// 查询模板列表
export function templateExperimentList(params) {
  return minRequest.get(`/template/experiment/list`, params)
}

// 查询模板列表详情
export function templateExperimentListDetail(templateId) {
  return minRequest.get('/template/experiment/' + templateId)
}

// 添加模板
export function templateExperimentAdd(data) {
  return minRequest.post('/template/experiment', data)
}

// 更新模板
export function templateExperimentUpdate(data) {
  return minRequest.put('/template/experiment', data)
}

// 删除模板
export function templateExperimentDelete(templateId) {
  return minRequest.delete('/template/experiment/' + templateId)
}
